package br.com.verde.exemploteca.functions

object FunctionsV1 {
  def sumInts(a: Int, b: Int): Int =
    if (a > b) 0 else a + sumInts(a + 1, b)
  
  def square(x: Int): Int = x * x
  
  def sumSquare(a: Int, b: Int): Int =
    if (a > b) 0 else square(a) + sumSquare(a + 1, b)
  
  
  def main(args : Array[String]) : Unit = {}
}
